<?php
/**
 * 
 */
class SirtSubsetModeY extends AppModel {
  
	var $name = 'SirtSubsetModeY';
	var $useTable = 'sirt_subset_mode_ys';
	var $displayField = 'name';
  
  
  var $validate = array(
      
		'config_file_val' => array(
        'notempty' => array(
          'rule' => array('notempty'),
          //'message' => 'Your custom message here',
          //'allowEmpty' => false,
          //'required' => false,
          //'last' => false, // Stop validation after this rule
          //'on' => 'create', // Limit validation to 'create' or 'update' operations
        ),
        'alphanumeric' => array(
          'rule' => array('alphanumeric'),
          //'message' => 'Your custom message here',
          //'allowEmpty' => false,
          //'required' => false,
          //'last' => false, // Stop validation after this rule
          //'on' => 'create', // Limit validation to 'create' or 'update' operations
        ),
		),
		'name' => array(
        'notempty' => array(
          'rule' => array('notempty'),
          //'message' => 'Your custom message here',
          //'allowEmpty' => false,
          //'required' => false,
          //'last' => false, // Stop validation after this rule
          //'on' => 'create', // Limit validation to 'create' or 'update' operations
        ),
        'maxlength' => array(
            'rule' => array('maxlength', 40),
            'message' => 'Maximum length of this field is 40.',
          //'allowEmpty' => false,
          //'required' => false,
          //'last' => false, // Stop validation after this rule
          //'on' => 'create', // Limit validation to 'create' or 'update' operations
        ),
		),
	);
  
  
	//The Associations below have been created with all possible keys, those that are not needed can be removed

	var $hasMany = array(
		'ParamSirtBasis' => array(
			'className' => 'ParamSirtBasis',
			'foreignKey' => 'sirt_subset_mode_y_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

}
